#include<stdio.h>
int main(){
  int n;scanf("%d",&n);
  int arr[1000];
  int i=0,j=0;
  for(i=0;i<n;++i){
    scanf("%d",&arr[i]);
  }
  //这是一个冒泡排序
  for(i=n-1;i>0;--i){
    for(j=0;j<i;++j){
      if(arr[j]>arr[j+1]){
        int temp = arr[j]^arr[j+1];
        arr[j] = temp^arr[j];
        arr[j+1] = temp^arr[j];
      }
    }
  }
  for(i=0;i<n;++i) printf("%d ",arr[i]);
  printf("\n");
  return 0;
}

